home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / src / binutils.252 / ld / scriptte / aout.sc < prev    next >
Encoding:
Text File  |  1994-10-13  |  1.0 KB  |  50 lines

  1. cat <<EOF
  2. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  3. OUTPUT_ARCH(${ARCH})
  4.  
  5. ${RELOCATING+${LIB_SEARCH_DIRS}}
  6. ${STACKZERO+${RELOCATING+${STACKZERO}}}
  7. ${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}}
  8. SECTIONS
  9. {
  10.   ${RELOCATING+. = ${TEXT_START_ADDR};}
  11.   .text :
  12.   {
  13.     CREATE_OBJECT_SYMBOLS
  14.     *(.text)
  15.     /* The next six sections are for SunOS dynamic linking.  The order
  16.        is important.  */
  17.     *(.dynrel)
  18.     *(.hash)
  19.     *(.dynsym)
  20.     *(.dynstr)
  21.     *(.rules)
  22.     *(.need)
  23.     ${RELOCATING+_etext = .;}
  24.     ${RELOCATING+__etext = .;}
  25.     ${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}}
  26.   }
  27.   ${RELOCATING+. = ${DATA_ALIGNMENT};}
  28.   .data :
  29.   {
  30.     /* The first three sections are for SunOS dynamic linking.  */
  31.     *(.dynamic)
  32.     *(.got)
  33.     *(.plt)
  34.     *(.data)
  35.     *(.linux-dynamic) /* For Linux dynamic linking.  */
  36.     ${CONSTRUCTING+CONSTRUCTORS}
  37.     ${RELOCATING+_edata  =  .;}
  38.     ${RELOCATING+__edata  =  .;}
  39.   }
  40.   .bss :
  41.   {
  42.    ${RELOCATING+ __bss_start = .};
  43.    *(.bss)
  44.    *(COMMON)
  45.    ${RELOCATING+_end = ALIGN(4) };
  46.    ${RELOCATING+__end = ALIGN(4) };
  47.   }
  48. }
  49. EOF
  50.